myApp.factory('$serApiSend', function ($resource,$localStorage) {
    return function(data, url){
        data = data || {};
        data.token = data.token?data.token:$localStorage.userInfo&&$localStorage.userInfo.token;
        url = admin_url + url;
        return $resource(url)
            .save(data)
            .$promise;
    }
});